package com.cnbot.toolkit.file;

import android.os.Environment;
import android.util.Log;

import org.junit.Before;
import org.junit.Test;

import java.io.File;

/**
 *  @项目名：  ToolKitModel
 *  @包名：    com.cnbot.toolkit.file
 *  @文件名:   FileUtilTest
 *  @创建者:   ww
 *  @创建时间:  2019/11/13 14:53
 *  @描述：    TODO
 */
public class FileUtilTest {

	private File mRootDir;
	private String TAG = "FileUtilTest";

	@Before
	public void setUp() throws Exception {
		mRootDir = Environment.getExternalStorageDirectory();
	}

	@Test
	public void deleteFile() {
		String path = mRootDir + File.separator + "2.txt";
		boolean result = FileUtil.deleteFile(path);
		Log.e(TAG, "deleteFile-" + result);
	}

	@Test
	public void deleteFile1() {}

	@Test
	public void mkdirs() {}

	@Test
	public void listFiles() {}

	@Test
	public void listFiles1() {}

	@Test
	public void bitmap2JPEG() {}

	@Test
	public void bitmap2PNG() {}

	@Test
	public void bitmap2WEBP() {}

	@Test
	public void bitmap2JPEG1() {}

	@Test
	public void bitmap2PNG1() {}

	@Test
	public void bitmap2WEBP1() {}

	@Test
	public void fileLength() {}

	@Test
	public void fileLength1() {}

	@Test
	public void dirLength() {}

	@Test
	public void checkSuffix() {}

	@Test
	public void bitmap2File() {}

	@Test
	public void file2Uri() {}

	@Test
	public void checkSDCardAvailable() {}

	@Test
	public void getBitmapByUri() {}

	@Test
	public void isImageFile() {}
}